package org.yxj.breakpointdownloadingapp;

import android.app.Application;
import com.liulishuo.filedownloader.FileDownloader;
import org.yxj.lib_downfile.m.AppSQLiteManager;
import org.yxj.lib_downfile.m.DownFileManager;

/**
 * @author on 2022/8/25
 */
public class MyApp extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        /**下载框架初始化*/
        FileDownloader.setup(getApplicationContext());
        initCrateDB();
    }

    /**
     * 初始化创建数据库
     */
    private void initCrateDB() {
        DownFileManager.getInstance().init(getApplicationContext());
    }
}
